<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>indexxxxxxxx</h1>
    <div th:if="${session.account != null}">
        <span th:text="${session.account.username} + '欢迎回来!'"> | </span><a href="/account/logout">退出</a>
    </div>
    <a href="/account/main">main</a><br/>
    <div shiro:hasPermission="manage">
        <a href="/account/manage">manage</a><br/>
    </div>
    <div shiro:hasRole="administrator">
        <a href="/account/administrator">administrator</a>
    </div>
</body>
</html>